package com.deelete.springcloud.service.impl;

import com.deelete.springcloud.mapper.AccountMapper;
import com.deelete.springcloud.service.AccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;

@Service
public class AccountServiceImpl implements AccountService {

    @Resource
    private AccountMapper accountMapper;

    @Override
    public Boolean CutAccount(Long userId, BigDecimal money) {
        return accountMapper.CutAccount(userId, money)>0;
    }
}
